package com.hb.ssmdemo.tools.udp;

import org.apache.log4j.Logger;

/**
 * 
 *@ClassName:Command
 *@Description:发送命令
 *
 **/
public class Command {

	public Logger log = Logger.getLogger(SendData.class);
	/**
	 * 
	 * @Description: 发送命令
	 * 
	 */
	public String sendData(String terCode,boolean flag){
		
		String cmd = new EnCode().sendData(terCode,flag);
		if(cmd != null){
			try {
				SendData.udpSendData(terCode,cmd,flag);
			} catch (Exception e) {
				log.info(e.getMessage());
			}
		}
		return cmd;
	}
}
